Statements and Functions > Graphic

Graphic

General Operation Statement

Syntax samples

GRAPHIC <expression>

GRAPHIC 2

GRAPHIC Var1

Description

Changes the entity’s or resource’s current graphic. Entities and resources are assigned graphics from the graphics library in the Entity or Resource editor. Use the GRAPHIC to show the result of a process. For example, when a customer sits down, the graphic could change from a standing person to a sitting person.

Valid In

When used in node entry, node exit, and resource-downtime logic, GRAPHIC changes a resource’s graphic. When used in operation logic, move logic, and arrival logic, GRAPHIC changes an entity’s graphic.

Components

<expression>

The number of the entity’s or resource’s new graphic.

Example

In the example below, a patient arrives at the waiting room where he sits down (GRAPHIC 2). As long as the patient is in the waiting room we would like him to remain seated. Accordingly, the GRAPHIC statement showing the patient standing is not found in the Operation block but rather the move logic. This way, the patient will not be shown standing until he departs.

Process Table

Entity...

Location...

Operation (min)...

Patient

Waiting_Rm

Graphic2

Routing Table

Blk

Output...

Destination...

Rule...

Move Logic...

1

Patient

Triage

FIRST 1

Graphic1

See Also

Entities and Resources.


© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com